function st = remove_empty_fields(st)

fields = fieldnames(st);
for i = 1 : length(fields)
    if isempty(st.(fields{i}))
        st = rmfield(st, fields{i});
    end
end
